﻿<p>
    This example shows DatePicker abilities to parse input value depending on given server date format or predefined words.
</p>
<p>
    DatePicker uses the default date format provided from server to parse the input. The parsing starts when input looses its focus or user clicks
    "Enter" button.
    If the value cannot be parsed an error state class is added to the input. 
</p>
<p>
    Other feature of the datepicker parsing is the ability to generate date depending on predified words. The available combinations are:
</p>
<ul>
    <li>
        "Today", which will be parsed as today's date.
    </li>
    <li>
        "Yesterday", which will be parsed as one day before today.
    </li>
    <li>
        "Tomorrow", which will be parsed as one day after today.
    </li>
    <li>
        Day of the week : The parsed date will corresponds to the typed day of the week.
    </li>
    <li>
        Month of the year: The parsed date will corresponds to the typed month of the year. Tha day of the month will be today's one.
    </li>
    <li>
        "Next" or "Last" words can be used in combination with the aforementioned ones as well as with the "day", "week", "month" and "year".
    </li>
</ul>
<p>
    If you need to localize the predefined words you should provide own $.telerik.cultureInfo object, which contains 
    localized definitions for "today", "tomorrow" and etc.
</p>